//
//  TapImageView.m
//  Car
//
//  Created by apple on 15/9/17.
//  Copyright (c) 2015年 朱鸿儒. All rights reserved.
//

#import "TapImageView.h"

@implementation TapImageView

- (instancetype)initWithFrame:(CGRect)frame target:(id)target action:(SEL)action {
    
    self = [super initWithFrame:frame];
    
    if (self) {
        
        //  创建一个点击事件
        UITapGestureRecognizer *imageTap = [[UITapGestureRecognizer alloc] initWithTarget:target action:action];
        //  打开交互
        self.userInteractionEnabled = YES;
        
        //  把该手势归至当前类
        [self addGestureRecognizer:imageTap];
        
        
    }
    
    
    return self;
    
}



@end
